package org.ww.consumer.controller;

import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.ww.consumer.client.UserClient;

@RestController
@RequestMapping("/consumer/user")
public class UserController {

    @Autowired
    private UserClient userClient;

    @DeleteMapping("/{id}")
    public Boolean remove(@PathVariable Integer id){
        return userClient.removeUser(id);
    }
}
